<%- if opts[:path] -%>
<% if opts[:array] %>[[<%= opts[:path] %>]]<% else %>[<%= opts[:path] %>]<% end %>
<%- end -%>
<%- spec.grouped.each do |title, options| -%>
  <%- if spec.categories.length > 1 -%>
  <%- if opts[:titles] -%>
  #
  # <%= title %>
  #
  <%- end -%>

  <%- end -%>
  <%- options.each do |option| -%>
    <%- if option.array?("table") -%>
<%= config_spec(option.options, titles: false, path: "#{opts[:path]}.#{option.name}", array: true).indent(2) %>
    <%- elsif option.table? -%>
<%= config_spec(option.options, titles: false, path: "#{opts[:path]}.#{option.name}").indent(2) %>
    <%- else -%>
<%= option.description.editorify(78).commentify.indent(2) %>
      <%- spec.tags(option).each do |tag| -%>
  # * <%= tag %>
      <%- end -%>
      <%- option.examples.each do |example| -%>
        <%- if example.is_a?(Hash) -%>
  <%= example.fetch("name") %> = <%= example.fetch("value").to_toml %>
        <%- else -%>
  <%= option.name %> = <%= example.to_toml %>
        <%- end -%>
      <%- end -%>
    <%- end %>
  <%- end -%>
<%- end -%>